<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
    <h3>修改广告图片</h3>
	<form action="doupdateAdv" method="post" enctype="multipart/form-data">
	  <input type="hidden" name="id" value="${a.id}"/>
	     <table>
	        <tr>
	           <td>图片</td>
	           <td><input type="file" name="file" value="${a.img}"/></td>
	        </tr>
	        <tr>
	           <td>路径</td>
	           <td><input type="text" name="url" value="${a.url}"/></td>
	        </tr>
	        <tr>
	           <td>位置</td>
	           <td><select name="position">
	              <option value="1" <c:if test="${a.position==1}">selected='selected'</c:if>>首页滚动焦点广告</option>
	              <option value="2"<c:if test="${a.position==2}">selected='selected'</c:if>>首页横幅广告-1</option>
	              <option value="3"<c:if test="${a.position==3}">selected='selected'</c:if>>首页横幅广告-2</option>
	              </select>
	           </td>
	        </tr>
	        <tr>
	           <td><input type="submit" value="提交"/></td>
	        </tr>
	     </table>
	</form>
</body>
</html>